﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sbook.Data;
namespace Sbook.Business
{
    public class AuthorsService
    {
        private static AuthorsController db = new  AuthorsController();
        #region[Authors_GetById]
        public static List<Data.AuthorsInfo> Authors_GetById(string Id)
        {
            return db.Authors_GetById(Id);
        }
        #endregion
        #region[Authors_GetByTop]
        public static List<Data.AuthorsInfo> Authors_GetByTop(string Top, string Where, string Order)
        {
            return db.Authors_GetByTop(Top, Where, Order);
        }
        #endregion
        #region[Authors_GetByAll]
        public static List<Data.AuthorsInfo> Authors_GetByAll()
        {
            return db.Authors_GetByAll();
        }
        #endregion
        #region[Authors_Paging]
        public static List<Data.AuthorsInfo> Authors_Paging(string CurentPage, string PageSize)
        {
            return db.Authors_Paging(CurentPage, PageSize);
        }
        #endregion
        #region[Authors_Insert]
        public static bool Authors_Insert(AuthorsInfo data)
        {
            return db.Authors_Insert(data);
        }
        #endregion
        #region[Authors_Update]
        public static bool Authors_Update(AuthorsInfo data)
        {
            return db.Authors_Update(data);
        }
        #endregion
        #region[Authors_Delete]
        public static bool Authors_Delete(string Id)
        {
            return db.Authors_Delete(Id);
        }
        #endregion
    }
}